package main
import "fmt"
func main(){
	var a map[int]string
	
	a = make(map[int]string , 3)
	a[5] = "5"
	a[1] = "1"
	a[10] = "10"
	fmt.Println("a = ", a)
	
	delete(a, 2)	//a为map变量的名字，1为它的key，我这里试图删除个不存在的
	
	fmt.Println("a = ", a)
	
	fmt.Println("======================================")
	
	delete(a, 1)	//我这里删除一个存在的key
	
	fmt.Println("a = ", a)
	
}
